﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WA.Core.DomainModel;
using WA.Core.DaoInterfaces;

namespace WA.Data
{
    public class CompanyDao:BaseDao<Company,int>,ICompanyDao
    {
        public override Company GetById(int id)
        {
            var result = (from c in db.Companies
                          where c.CompanyID == id
                          select c).First();
            return result;
        }
    }
}
